import Vue from 'vue'
import App from './App'
import router from './router'
import Mock from './mock.js'
import axios from 'axios'
import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(Mint)
Vue.use(Mock)

Vue.config.productionTip = false /* 阻止 启动生成生产消息 */

axios.defaults.timeout = 15000 // 超时响应
axios.defaults.headers.post['Content-Type'] = 'application/json;charset=UTF-8'
axios.defaults.withCredentials = false // axios 默认不发送cookie，需要全局设置true发送cookie
axios.defaults.baseURL = 'http://127.0.0.1:8081' // url的前面公共区域，确认协议和地址

Vue.prototype.$http = axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
